<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h2>Bem Estar</h2>
        <h:form>
            <h5><h:outputLabel id="txtDicaDia" value="#{bemEstarMB.dicadia}"/></h5>
            <br/>
            
            Calculo do IMC<br/>
            Peso:<h:inputText id="txtPeso" value="#{imcMB.peso}"/><br/>
            Altura:<h:inputText id="txtAltura" value="#{imcMB.altura}"/><br/>
            
            <h:commandButton action="#{imcMB.buscarImc()}" id="btnCalcular" value="calcular"/>
            <br/>
            <h:outputLabel id="txtResultadoIMC"/>
            <h:outputLabel id="intIMC" value="#{imcMB.resultado}"/>
        </h:form>
    </h:body>
</html>

